package com.com.cjl.sqlSession;

import com.cjl.pojo.Configuration;
import com.com.cjl.config.XMLConfigBuilder;
import org.dom4j.DocumentException;

import java.io.InputStream;

public class SqlSessionFactoryBuilder {

    public SqlSessionFactory build(InputStream inputStream) throws DocumentException {
        //使用dom4j解析配置文件，将解析出来的内容封装到Configuration中
        XMLConfigBuilder xmlConfigBuilder = new XMLConfigBuilder();
        //获取Configuration对象
        Configuration configuration = xmlConfigBuilder.parseConfig(inputStream);

        //创建SqlSessionFactory对象
    }
}
